home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
bigarr
/
time2win.bas
< prev
next >
Wrap
BASIC Source File
|
1995-01-10
|
46KB
|
648 lines
Option Explicit
Global Const GET_TIME_SEPARATOR = 1
Global Const GET_DATE_SEPARATOR = 2
Global Const GET_TIME_FORMAT = 3
Global Const GET_DATE_FORMAT = 4
Global Const GET_CURRENCY = 5
Global Const GET_LANGUAGE = 6
Global Const GET_COUNTRY = 7
Global Const GET_COUNTRY_CODE = 8
Global Const GET_LIST_SEPARATOR = 9
Global Const GET_DEFAULT_PRINTER = 10
Global Const DRIVE_UNKNOW = 0
Global Const DRIVE_REMOVABLE = 2
Global Const DRIVE_FIXED = 3
Global Const DRIVE_REMOTE = 4
Global Const DRIVE_CDROM = 20
Global Const A_NORMAL = &H0 'Normal file - No read/write restrictions
Global Const A_RDONLY = &H1 'Read only file
Global Const A_HIDDEN = &H2 'Hidden file
Global Const A_SYSTEM = &H4 'System file
Global Const A_VOLID = &H8 'Volume ID file
Global Const A_SUBDIR = &H10 'Subdirectory
Global Const A_ARCH = &H20 'Archive file
Global Const ENCRYPT_LEVEL_0 = 0
Global Const ENCRYPT_LEVEL_1 = 1
Global Const ENCRYPT_LEVEL_2 = 2
Global Const ENCRYPT_LEVEL_3 = 3
Global Const OPEN_MODE_BINARY = 0
Global Const OPEN_MODE_TEXT = 1
Global Const BIG_ADD = 0
Global Const BIG_SUB = 1
Global Const BIG_MUL = 2
Global Const VER_VERSION_PRODUCT = -1
Global Const VER_VERSION_FILE = 0
Global Const VER_COMPANY_NAME = 1
Global Const VER_FILE_DESCRIPTION = 2
Global Const VER_FILE_VERSION = 3
Global Const VER_INTERNAL_NAME = 4
Global Const VER_LEGAL_COPYRIGHT = 5
Global Const VER_LEGAL_TRADEMARKS = 6
Global Const VER_PRODUCT_NAME = 7
Global Const VER_PRODUCT_VERSION = 8
Global Const LNG_FRENCH = 1
Global Const LNG_DUTCH = 2
Global Const LNG_GERMAN = 3
Global Const LNG_ENGLISH = 4
Global Const LNG_ITALIAN = 5
Global Const LNG_SPANISH = 6
Global Const MB_MESSAGE_LEFT = 0
Global Const MB_MESSAGE_CENTER = 8192
Global Const MB_MESSAGE_RIGHT = 16384
Global Const MB_TIMEOUT_2 = 32768
Global Const MB_TIMEOUT_4 = 2 * MB_TIMEOUT_2
Global Const MB_TIMEOUT_8 = 2 * MB_TIMEOUT_4
Global Const MB_TIMEOUT_16 = 2 * MB_TIMEOUT_8
Global Const MB_TIMEOUT_6 = MB_TIMEOUT_2 Or MB_TIMEOUT_4
Global Const MB_TIMEOUT_10 = MB_TIMEOUT_2 Or MB_TIMEOUT_8
Global Const MB_TIMEOUT_12 = MB_TIMEOUT_4 Or MB_TIMEOUT_8
Global Const MB_TIMEOUT_14 = MB_TIMEOUT_2 Or MB_TIMEOUT_4 Or MB_TIMEOUT_8
Global Const MB_TIMEOUT_18 = MB_TIMEOUT_2 Or MB_TIMEOUT_16
Global Const MB_TIMEOUT_20 = MB_TIMEOUT_4 Or MB_TIMEOUT_16
Global Const MB_TIMEOUT_22 = MB_TIMEOUT_2 Or MB_TIMEOUT_4 Or MB_TIMEOUT_16
Global Const MB_TIMEOUT_24 = MB_TIMEOUT_8 Or MB_TIMEOUT_16
Global Const MB_TIMEOUT_26 = MB_TIMEOUT_2 Or MB_TIMEOUT_8 Or MB_TIMEOUT_16
Global Const MB_TIMEOUT_28 = MB_TIMEOUT_4 Or MB_TIMEOUT_8 Or MB_TIMEOUT_16
Global Const MB_TIMEOUT_30 = MB_TIMEOUT_2 Or MB_TIMEOUT_4 Or MB_TIMEOUT_8 Or MB_TIMEOUT_16
Global Const MB_DISPLAY_TIMEOUT = 524288
Global Const RS_CAPTION = 1
Global Const RS_TEXT = 2
Global Const RS_DATAFIELD = 4
Global Const RS_DATASOURCE = 8
Global Const MATCH_HEXA = 17
Global Const MATCH_INTERNAL_ERROR = 16
Global Const MATCH_PATTERN = 15
Global Const MATCH_LITERAL = 14
Global Const MATCH_RANGE = 13
Global Const MATCH_ABORT = 12
Global Const MATCH_END = 11
Global Const MATCH_VALID = -1
Global Const PATTERN_VALID = 0
Global Const PATTERN_INVALID = 1
Global Const PATTERN_ESC = 2
Global Const PATTERN_RANGE = 3
Global Const PATTERN_CLOSE = 4
Global Const PATTERN_EMPTY = 5
Global Const PATTERN_INTERNAL_ERROR = 6
Global Const PATTERN_HEXA = 7
Global Const IFV_ERROR = 0
Global Const IFV_NAME_TOO_LONG = 1
Global Const IFV_EXT_TOO_LONG = 2
Global Const IFV_TOO_MANY_BACKSLASH = 3
Global Const IFV_BAD_DRIVE_LETTER = 4
Global Const IFV_BAD_COLON_POS = 5
Global Const IFV_EXT_WITHOUT_NAME = 6
Global Const DA_BYTE = 1
Global Const DA_TYPE = 0
Global Const DA_INTEGER = -2
Global Const DA_LONG = -3
Global Const DA_SINGLE = -4
Global Const DA_DOUBLE = -5
Global Const DA_CURRENCY = -6
Global Const DA_NO_ERROR = True
Global Const DA_EMPTY_FILENAME = 1
Global Const DA_BAD_FILENAME = 2
Global Const DA_CAN_KILL_FILE = 3
Global Const DA_CAN_NOT_OPEN_FILE = 4
Global Const DA_FILE_NOT_FOUND = 5
Global Const DA_BAD_TYPE = 6
Global Const DA_BAD_ROWS = 7
Global Const DA_BAD_COLS = 8
Global Const DA_BAD_SHEETS = 9
Global Const DA_CAN_NOT_WRITE_HEADER = 10
Global Const DA_CAN_NOT_WRITE_PART = 11
Global Const DA_CAN_NOT_WRITE_REMAIN = 12
Global Const DA_CAN_NOT_READ_HEADER = 13
Global Const DA_HEADER_SIZE = 14
Global Const DA_BAD_SIGNATURE = 15
Global Const DA_FILE_SIZE_MISMATCH = 16
Global Const DA_CAN_NOT_SEEK = 17
Global Const DA_INVALID_HANDLE = 18
Type tagSPLITPATH
nDrive As String
nDir As String
nName As String
nExt As String
End Type
Type tagFILEVERSIONINFO
VersionProduct As String
VersionFile As String
CompanyName As String
FileDescription As String
FileVersion As String
InternalName As String
LegalCopyright As String
LegalTrademarks As String
Comments As String
ProductName As String
ProductVersion As String
End Type
Type FileAttributeType
ErrNo As Integer
Archive As Integer
Hidden As Integer
Normal As Integer
ReadOnly As Integer
SubDir As Integer
System As Integer
VolId As Integer
End Type
Type ArrayType
Bounds As Long
LBound As Integer
UBound As Integer
ElemSize As Integer
IndexCount As Integer
TotalElem As Integer
End Type
Type tagMODULEENTRY
dwSize As Long
szModule As String * 10
hModule As Integer
wcUsage As Integer
szExePath As String * 256
wNext As Integer
End Type
Type tagTASKENTRY
dwSize As Long
hTask As Integer
hTaskParent As Integer
hInst As Integer
hModule As Integer
wSS As Integer
wSP As Integer
wStackTop As Integer
wStackMinimum As Integer
wStackBottom As Integer
wcEvents As Integer
hQueue As Integer
szModule As String * 10
wPSPOffset As Integer
hNext As Integer
End Type
Type tagDISKARRAY
daSize As Integer 'size of the type'd
Signature As String * 7 'signature
nFilename As String * 64 'name of the file
nType As Integer 'variable type
nRows As Long 'number of rows
nCols As Long 'number of cols
nSheets As Long 'number of sheets
rHandle As Integer 'returned handle for use with other functions
rElementSize As Integer 'returned size of a element
rFileSize As Long 'returned size of the file
rParts As Long 'returned total part
rRemain As Long 'returned size of the remain part
rSheetSize As Long 'size of a sheet
rOffset1 As Long 'returned offset 1
rOffset2 As Long 'returned offset 2
rTime As Long 'time for the last correct transaction
nIsTyped As Integer 'is nType a type'd variable
dummy As String * 7 'reserved for future use
End Type
Rem Don't Remove It
Declare Function cAddD Lib "time2win.dll" (array() As Double, ByVal nValue As Double) As Integer
Declare Function cAddDigit Lib "time2win.dll" (Txt As String) As Integer
Declare Function cAddI Lib "time2win.dll" (array() As Integer, ByVal nValue As Integer) As Integer
Declare Function cAddL Lib "time2win.dll" (array() As Long, ByVal nValue As Long) As Integer
Declare Function cAddS Lib "time2win.dll" (array() As Single, ByVal nValue As Single) As In